package com.steward.model.mob;

import java.util.ArrayList;
import java.util.List;

public class MobGiftActiveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MobGiftActiveExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andActiveidIsNull() {
            addCriterion("activeID is null");
            return (Criteria) this;
        }

        public Criteria andActiveidIsNotNull() {
            addCriterion("activeID is not null");
            return (Criteria) this;
        }

        public Criteria andActiveidEqualTo(String value) {
            addCriterion("activeID =", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidNotEqualTo(String value) {
            addCriterion("activeID <>", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidGreaterThan(String value) {
            addCriterion("activeID >", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidGreaterThanOrEqualTo(String value) {
            addCriterion("activeID >=", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidLessThan(String value) {
            addCriterion("activeID <", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidLessThanOrEqualTo(String value) {
            addCriterion("activeID <=", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidLike(String value) {
            addCriterion("activeID like", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidNotLike(String value) {
            addCriterion("activeID not like", value, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidIn(List<String> values) {
            addCriterion("activeID in", values, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidNotIn(List<String> values) {
            addCriterion("activeID not in", values, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidBetween(String value1, String value2) {
            addCriterion("activeID between", value1, value2, "activeid");
            return (Criteria) this;
        }

        public Criteria andActiveidNotBetween(String value1, String value2) {
            addCriterion("activeID not between", value1, value2, "activeid");
            return (Criteria) this;
        }

        public Criteria andCardidIsNull() {
            addCriterion("cardID is null");
            return (Criteria) this;
        }

        public Criteria andCardidIsNotNull() {
            addCriterion("cardID is not null");
            return (Criteria) this;
        }

        public Criteria andCardidEqualTo(String value) {
            addCriterion("cardID =", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidNotEqualTo(String value) {
            addCriterion("cardID <>", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidGreaterThan(String value) {
            addCriterion("cardID >", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidGreaterThanOrEqualTo(String value) {
            addCriterion("cardID >=", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidLessThan(String value) {
            addCriterion("cardID <", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidLessThanOrEqualTo(String value) {
            addCriterion("cardID <=", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidLike(String value) {
            addCriterion("cardID like", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidNotLike(String value) {
            addCriterion("cardID not like", value, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidIn(List<String> values) {
            addCriterion("cardID in", values, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidNotIn(List<String> values) {
            addCriterion("cardID not in", values, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidBetween(String value1, String value2) {
            addCriterion("cardID between", value1, value2, "cardid");
            return (Criteria) this;
        }

        public Criteria andCardidNotBetween(String value1, String value2) {
            addCriterion("cardID not between", value1, value2, "cardid");
            return (Criteria) this;
        }

        public Criteria andMobileidIsNull() {
            addCriterion("mobileID is null");
            return (Criteria) this;
        }

        public Criteria andMobileidIsNotNull() {
            addCriterion("mobileID is not null");
            return (Criteria) this;
        }

        public Criteria andMobileidEqualTo(String value) {
            addCriterion("mobileID =", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidNotEqualTo(String value) {
            addCriterion("mobileID <>", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidGreaterThan(String value) {
            addCriterion("mobileID >", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidGreaterThanOrEqualTo(String value) {
            addCriterion("mobileID >=", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidLessThan(String value) {
            addCriterion("mobileID <", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidLessThanOrEqualTo(String value) {
            addCriterion("mobileID <=", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidLike(String value) {
            addCriterion("mobileID like", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidNotLike(String value) {
            addCriterion("mobileID not like", value, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidIn(List<String> values) {
            addCriterion("mobileID in", values, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidNotIn(List<String> values) {
            addCriterion("mobileID not in", values, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidBetween(String value1, String value2) {
            addCriterion("mobileID between", value1, value2, "mobileid");
            return (Criteria) this;
        }

        public Criteria andMobileidNotBetween(String value1, String value2) {
            addCriterion("mobileID not between", value1, value2, "mobileid");
            return (Criteria) this;
        }

        public Criteria andCardtypeIsNull() {
            addCriterion("cardType is null");
            return (Criteria) this;
        }

        public Criteria andCardtypeIsNotNull() {
            addCriterion("cardType is not null");
            return (Criteria) this;
        }

        public Criteria andCardtypeEqualTo(Integer value) {
            addCriterion("cardType =", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeNotEqualTo(Integer value) {
            addCriterion("cardType <>", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeGreaterThan(Integer value) {
            addCriterion("cardType >", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("cardType >=", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeLessThan(Integer value) {
            addCriterion("cardType <", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeLessThanOrEqualTo(Integer value) {
            addCriterion("cardType <=", value, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeIn(List<Integer> values) {
            addCriterion("cardType in", values, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeNotIn(List<Integer> values) {
            addCriterion("cardType not in", values, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeBetween(Integer value1, Integer value2) {
            addCriterion("cardType between", value1, value2, "cardtype");
            return (Criteria) this;
        }

        public Criteria andCardtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("cardType not between", value1, value2, "cardtype");
            return (Criteria) this;
        }

        public Criteria andActIndIsNull() {
            addCriterion("ACT_IND is null");
            return (Criteria) this;
        }

        public Criteria andActIndIsNotNull() {
            addCriterion("ACT_IND is not null");
            return (Criteria) this;
        }

        public Criteria andActIndEqualTo(Integer value) {
            addCriterion("ACT_IND =", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndNotEqualTo(Integer value) {
            addCriterion("ACT_IND <>", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndGreaterThan(Integer value) {
            addCriterion("ACT_IND >", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndGreaterThanOrEqualTo(Integer value) {
            addCriterion("ACT_IND >=", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndLessThan(Integer value) {
            addCriterion("ACT_IND <", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndLessThanOrEqualTo(Integer value) {
            addCriterion("ACT_IND <=", value, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndIn(List<Integer> values) {
            addCriterion("ACT_IND in", values, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndNotIn(List<Integer> values) {
            addCriterion("ACT_IND not in", values, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndBetween(Integer value1, Integer value2) {
            addCriterion("ACT_IND between", value1, value2, "actInd");
            return (Criteria) this;
        }

        public Criteria andActIndNotBetween(Integer value1, Integer value2) {
            addCriterion("ACT_IND not between", value1, value2, "actInd");
            return (Criteria) this;
        }

        public Criteria andActTypeIsNull() {
            addCriterion("ACT_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andActTypeIsNotNull() {
            addCriterion("ACT_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andActTypeEqualTo(Integer value) {
            addCriterion("ACT_TYPE =", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeNotEqualTo(Integer value) {
            addCriterion("ACT_TYPE <>", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeGreaterThan(Integer value) {
            addCriterion("ACT_TYPE >", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ACT_TYPE >=", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeLessThan(Integer value) {
            addCriterion("ACT_TYPE <", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeLessThanOrEqualTo(Integer value) {
            addCriterion("ACT_TYPE <=", value, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeIn(List<Integer> values) {
            addCriterion("ACT_TYPE in", values, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeNotIn(List<Integer> values) {
            addCriterion("ACT_TYPE not in", values, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeBetween(Integer value1, Integer value2) {
            addCriterion("ACT_TYPE between", value1, value2, "actType");
            return (Criteria) this;
        }

        public Criteria andActTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ACT_TYPE not between", value1, value2, "actType");
            return (Criteria) this;
        }

        public Criteria andRateIsNull() {
            addCriterion("rate is null");
            return (Criteria) this;
        }

        public Criteria andRateIsNotNull() {
            addCriterion("rate is not null");
            return (Criteria) this;
        }

        public Criteria andRateEqualTo(Double value) {
            addCriterion("rate =", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotEqualTo(Double value) {
            addCriterion("rate <>", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThan(Double value) {
            addCriterion("rate >", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThanOrEqualTo(Double value) {
            addCriterion("rate >=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThan(Double value) {
            addCriterion("rate <", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThanOrEqualTo(Double value) {
            addCriterion("rate <=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateIn(List<Double> values) {
            addCriterion("rate in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotIn(List<Double> values) {
            addCriterion("rate not in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateBetween(Double value1, Double value2) {
            addCriterion("rate between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotBetween(Double value1, Double value2) {
            addCriterion("rate not between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeIsNull() {
            addCriterion("oilcard_type is null");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeIsNotNull() {
            addCriterion("oilcard_type is not null");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeEqualTo(Integer value) {
            addCriterion("oilcard_type =", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeNotEqualTo(Integer value) {
            addCriterion("oilcard_type <>", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeGreaterThan(Integer value) {
            addCriterion("oilcard_type >", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("oilcard_type >=", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeLessThan(Integer value) {
            addCriterion("oilcard_type <", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeLessThanOrEqualTo(Integer value) {
            addCriterion("oilcard_type <=", value, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeIn(List<Integer> values) {
            addCriterion("oilcard_type in", values, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeNotIn(List<Integer> values) {
            addCriterion("oilcard_type not in", values, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeBetween(Integer value1, Integer value2) {
            addCriterion("oilcard_type between", value1, value2, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andOilcardTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("oilcard_type not between", value1, value2, "oilcardType");
            return (Criteria) this;
        }

        public Criteria andGiftIdIsNull() {
            addCriterion("gift_ID is null");
            return (Criteria) this;
        }

        public Criteria andGiftIdIsNotNull() {
            addCriterion("gift_ID is not null");
            return (Criteria) this;
        }

        public Criteria andGiftIdEqualTo(String value) {
            addCriterion("gift_ID =", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdNotEqualTo(String value) {
            addCriterion("gift_ID <>", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdGreaterThan(String value) {
            addCriterion("gift_ID >", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdGreaterThanOrEqualTo(String value) {
            addCriterion("gift_ID >=", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdLessThan(String value) {
            addCriterion("gift_ID <", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdLessThanOrEqualTo(String value) {
            addCriterion("gift_ID <=", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdLike(String value) {
            addCriterion("gift_ID like", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdNotLike(String value) {
            addCriterion("gift_ID not like", value, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdIn(List<String> values) {
            addCriterion("gift_ID in", values, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdNotIn(List<String> values) {
            addCriterion("gift_ID not in", values, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdBetween(String value1, String value2) {
            addCriterion("gift_ID between", value1, value2, "giftId");
            return (Criteria) this;
        }

        public Criteria andGiftIdNotBetween(String value1, String value2) {
            addCriterion("gift_ID not between", value1, value2, "giftId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}